package com.cy.service;

import com.cy.entity.Address;
import org.springframework.stereotype.Service;

import java.util.List;


public interface IAddressService {
    void addNewAddress(Integer uid, String username, Address address);
//用户信息获得地址
    List<Address>getByUid(Integer uid);

    /**
     * 修改默认地址
     * @param aid
     * @param uid
     * @param username
     */
    void setDefault(Integer aid,Integer uid,String username);

    /**
     * 删除选中用户的收获地址
     * @param aid
     * @param uid
     * @param username
     */
    void delete(Integer aid ,Integer uid,String username);


}
